using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ProductList : SingletonPatternMono<ProductList>
{
    private float moveSpeed = 5;

    public void PopUp()
    {
        transform.localPosition =
        Vector3.Lerp(transform.localPosition,
        new Vector3(-42, transform.localPosition.y, transform.localPosition.z),
        Time.deltaTime * moveSpeed);
    }

    public void Recover()
    {
        transform.localPosition =
        Vector3.Lerp(transform.localPosition,
        new Vector3(-480, transform.localPosition.y, transform.localPosition.z),
        Time.deltaTime * moveSpeed);
    }
}
